home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
doodle_d.swf
/
scripts
/
frame_4
/
DoAction_11.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
876b
|
47 lines
function death()
{
trace("WTF!");
depth = _root.getNextHighestDepth();
_root.attachMovie("exp","exp" + depth,depth);
exp = eval("_root.exp" + depth);
exp._x = ship._x;
exp._y = ship._y;
ship._x = -500;
ship._y = -500;
_root._y = 0;
if(lives > 1)
{
life = false;
dead = true;
_root._y = 0;
lives--;
i = 0;
i = 0;
while(i < 21)
{
ene = eval("e" + i);
ene.removeMovieClip();
i++;
}
eAmount = 0;
gotoAndStop("tryAgain");
}
else
{
life = false;
dead = true;
_root._y = 0;
lives--;
i = 0;
i = 0;
while(i < 21)
{
ene = eval("e" + i);
ene.removeMovieClip();
i++;
}
eAmount = 0;
gotoAndStop("gameOver");
}
}